def get_garage_door_state(pin):
    if GPIO.input(pin): # pylint: disable=no-member
        state = 'open'
    else:
        state = 'closed'

    return state
Returns the state of the garage door on the specified pin as a string
dataset/ETHPy150Open rllynch/pi_garage_alert/bin/pi_garage_alert.py/get_garage_door_state