An electronic device for use in a vehicle includes a battery sensor to detect a battery voltage and a processor in communication with the battery sensor. The processor is configured to sample the battery voltage detected by the battery sensor and determine an operational state of the vehicle. The processor is also configured to control the electronic device in accordance with the operational state of the vehicle.