Serial Communication

Connecting the sensors:

  • Two analog inputs (accelerometer built-in on the Arduino Nano 33 IoT + pushbutton)
  • One digital input

My switchPin kept giving me "1" as an output and could not figure out the reason for it.

Serial Input

At first, putting all the files together came at an ease, then I struck a problem with my serial port not connecting and the sensor values not moving. I realized I did not have the serialcontrol app not open.

Serial Output