Simiple digital sensors have two wires and they can be used interchangeably. Identify one of the Digital input pins on your V2 smart controller. These are labeled as just numbers and are not prefixed with an A. You can see a full pinout diagram here. Place one of the wires into a gnd port on your V2 smart controller. Place the other into the Digital input pin and press the arduino mega reset button. You can now view the output of your digital sensor on Grafana.
You are here: / / How do I connect a simple digital sensor?