Updated the motion sensor classes and logging