so I made this greenhouse with humidity, light sensor etc. If the light is too low the 2-coil latching relay is supposed to switch a usb led-light on.
This works really well, unfortunately the relay switches on and off very fast unintentionally all the time. So when I check for the temperature, the light or the moisture for example, the relay switches on and off for about 1 second.
I can even just run a python script for the sensors:
import grovepi moisture_s=2 light_s=1 temp_hum_s=2 moisture=grovepi.analogRead(moisture_s) light=grovepi.analogRead(light_s) [temp,hum]=grovepi.dht(temp_hum_s)
Same thing happens.
How is this possible?