Servo Open/Close

const int LidTrig = 2;
...

if (LidTrig == HIGH)

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

Steve