'Initialize the sensor.'

def __init__(self, name, pin, pin_type):

    self._pin = pin
    self._name = name
    self.pin_type = pin_type
    self.direction = 'in'
    self._value = None
    arduino.BOARD.set_mode(self._pin, self.direction, self.pin_type)
