added current sensor data is written to the database