loop do an = arduino.analog_read 0 puts an arduino.analog_write 11, an/4 sleep 0.1 end