update device and fix sensor