try to catch sensor reading errors, provide debug