Changed temperature sensor and cleaning some code. Pending to separate header file into modules