i have 12V power line running via switch controlled by ESP32. Data is connected to let's say Pin13. Project is set that movement detection sensor registers movement and ESP32 sends signal to switch via Pin13, which turns LED lamp on. I would like to add Alexa command to turn LET on, that will shoot MQTT message to ESP32.
Question: Should I use same Pin13 to turn signal on for both cases? Use same switch, but wire two data cables (one to Pin13 other one to Pin12)? or use separate ESP32 pins and separate switches ?
Data connection to switch
Re: Data connection to switch
Can you explain more about what you mean by "switch". If the switch only has one input, then you only want to connect it to one pin on the ESP32 (otherwise you'll end up in a situation, for example, where you're driving Pin12 low and Pin13 high)