added status device xively | separated status and sensor code