Part of the logic from Sensor moved to a separate "class", fixed whitespaces, added more info to the logs.