change GPIO.input(chan) return value from number to boolean, to use if-then in a Lua style (GPIO.LOW: 0 == true in Lua boolean expressions)