I am using a photodiode sensor to control a physical light. How will activate a Relay for the physical light when the sensor triggers ( like night) to activate a Relay using Node_RED.
Is there a generalprinciple for using sensors with Node_RED to activate physical objects?
Hi.
You need to have some sort of input to read the sensor, then compare that value and control an output accordingly.
For example, see the Smart Home eBook Unit 8.2.
I hope this helps.
Regards,
Sara
the sensor is connected to pin 26
I published as: esp2/digital/notify
the input pin is about 0.23v while at trigger the pin is about 3.26v
at the Function the Switch I used >= and <= to check the values but is not working. How do I debug at Node_red to know the output of esp2/digital//notify?