This instrument runs using the I2C interface. On a Raspberry Pi, you will have to enable this type of communication.
Next, connect the four wires to GPIO Pins 3, 4, 5, 6
Open DFRobot_RainfallSensor.
Once you have copied the scripts, begin by running the DFRobot_RainfallSensor.py script, then run “read_data.py” to collect data. If you are uploading the data to the CHORDS server, you will have to insert the proper script into “read_data.py”