Modified the code to allow sensor data parsing and remote monitoring