Author Options:

What is the code needed for having an arduino desplay inputs from sensors onto the computer screen? Answered

i require some code for an arduino so that when i use a sensor the inputs from the arduino can be monitered from the computer screen

2 Replies

maewertBest Answer (author)2011-01-04

The Arduinos can send data over an TTL-level RS232 port using the internal UART.  The computer screen can display this serial data.

Very simply:

int sensorValue = 0;
void setup()
void loop()

  sensorValue = analogRead(analogInPin);

The Arduino development environment comes with a Serial Monitor that will display the results.

Best Wishes

Select as Best AnswerUndo Best Answer

MadScientist101 (author)maewert2011-01-05

thank, it has been bugging me for ages

Select as Best AnswerUndo Best Answer