def get(**kwargs):
sensor = None<EOL>tick = <NUM_LIT:0><EOL>driver = DHTReader(**kwargs)<EOL>while not sensor and tick < TIME_LIMIT:<EOL><INDENT>try:<EOL><INDENT>sensor = driver.receive_data()<EOL><DEDENT>except DHTException:<EOL><INDENT>tick += <NUM_LIT:1><EOL><DEDENT><DEDENT>return sensor<EOL>
Safe sensor wrapper