Patch for Issue 374 : version 2

Added state messages for enabling and disabling the sensor buttons