<s> '''<STR_LIT>''' <EOL> import time <EOL> import grovepi <EOL> gas_sensor = <NUM_LIT:0> <EOL> grovepi . pinMode ( gas_sensor , "<STR_LIT>" ) <EOL> while True : <EOL> try : <EOL> sensor_value = grovepi . analogRead ( gas_sensor ) <EOL> density = ( float ) ( sensor_value / <NUM_LIT> ) <EOL> print ( "<STR_LIT>" , sensor_value , "<STR_LIT>" , density ) <EOL> time . sleep ( <NUM_LIT> ) <EOL> except IOError : <EOL> print ( "<STR_LIT>" ) </s>
