solving a constant's bug. Also solving small bug when the last reading is also a provided one
finishing first implementation
default state to OFF in switch when adding new readings
debug traces
smal refactoring