school project

analogRead(sensor2) == HIGH

This will not work.
Should be digitalRead(sensor2), shouldn't it?