Tidying logging
Splitting up the sensor to packet and packet to command handling