Code for Cabin Monitoring Device