error handling in sensors