integration into the Main Class
added current sensor data is written to the database