Added error handling for devices that report values incorrectly