Fix behavior of the GPIOSensorAdaptor
* use an internal toggle state
Implement a simple rule engine