Servo Open/Close

slipstick:

const int LidTrig = 2;

...

if (LidTrig == HIGH)



It usually works better to compare the state of a pin rather than the pin number!

Steve

Bingo! Thank your for your help! Karma added :slight_smile: