Created GPIO base class for sensors.