check sensornode state before executing stuff
Merge branch 'groovy_dev' into quanjo_ipc