Hardware Reference
In-Depth Information
Now, upload the code to Arduino and open a serial terminal by navigating to
Tools
|
Seri-
al Monitor
in the IDE. Initially, you will see characters that make no sense; you need to
change the serial port baud rate to
115200 baud
by selecting this field in the lower-right
corner of
Serial Monitor
, as shown in the following screenshot:
Now, you should begin to see results that make sense. If you place your hand in front of
the sensor and then move it, you should see the distance results change, as shown in the
following screenshot: