Hi, I am currently working on a project. I am using a relay module to act as a switch and an array of photodiodes to sense whether is there any light source.
Once there is light source, the relay will be trigger and switch on my device.
I having problem with the relay module. If I just running it without using any sensors, it work just fine.(Just sending HIGH and LOW to the pin)
But when I connect it to my main circuit, which is with the sensors, the red led on relay lights up but the relay won't work.
Hi, thanks for the reply
I solved this problem already. Seems like it is a coding problem
I shifted the digital write pin to low into else section and it is working now