saving logs, reading sensors