Updated for JSON Sensor output