This is an example sketch which uses an Arduino nano and can be adapted to an Arduino Uno. Once you get this working and want to have a go at doing more with the data, have a look at my setup for inspiration!
Please note that there is no MQTT-enabled Arduino version as these boards have no integrated way of communicating the data over the network like the RaspberryPi and ESP modules do.
The libraries this project uses are:
- 1 x Arduino Nano or Arduino Uno
- 1 x RS232 transceiver module. Ex: MAX3232 Module
- 1 x 6P6C Straight Cable (Double check wire colors against 6P6C-Connector.jpg)
See the schematic or other photos in this directory for details.