  *  + Switches
  *  + ...
  */ 
-int readDigitalGenericSensor(char *sensorId) {
-  int pin = getPinForSensorId(sensorId);
-  int value = digitalRead(pin);
+byte readDigitalGenericSensor(char *sensorId) {
+  byte pin = getPinForSensorId(sensorId);
+  byte value = digitalRead(pin);
   
   printSensorResult(sensorId, pin, value);
   return value;

  return freeValue; 
}


 * Returns the pin for the given sensorId
 */
int getPinForSensorId(char *sensorId) {
  for (byte ctr=0; ctr < sizeof(sensorIds)/sizeof(char); ctr++) {
    if (sensorIds[ctr] == sensorId) {
      return ctr;
    }
