Hello all. I need some assistance with my code for a project involving a water sensor. The sensor is supposed to send a signal that is read every 5 seconds. Once it reads that signal above a threshold, it activates a light. However, in testing my code, for some reason, once the signal gets above that threshold, the code stops reading for a signal. Does anyone know how to fix this and make it keep reading for that signal? Attached is the file for my code. Thank you.
Water_Alarm.ino (636 Bytes)