Very simple sketch not working as expected???

if(digitalRead(highbeam_IN == LOW))

change to

if(digitalRead(highbeam_IN) == LOW)

:wink: