modified ir_receiver_demo to print 1 when signal reads active-low