rolled version of Base Sensor sketch to note EggBus library changed