const int LidTrig = 2;
...
if (LidTrig == HIGH)
It usually works better to compare the state of a pin rather than the pin number!
Steve
const int LidTrig = 2;
...
if (LidTrig == HIGH)
It usually works better to compare the state of a pin rather than the pin number!
Steve