caught a class cast exception when no time was set on a sensor value