First let's wire up the DS18B20 temperature sensor. We need to add the 4.7 KΩ pull-up resistor that comes with the sensor to the signal line to ensure the board can read the sensor. We'll use a small breadboard, some breadboard jumpers and alligator clips to wire it up. 

  • Blue wire of the sensor to CPX ground.
  • Yellow wire of the sensor to CPX A3.
  • Red wire of the sensor to CPX 3.3V.
  • 4.7 KΩ resistor connected to both the  yellow wire (data) and red wire (3.3V).

For the moisture sensors we'll use two nails and two alligator clips connected to A1 and A2  on the CPX.

nail images from Pixabay:

I had some help from the awesome "Using DS18B20 Temperature Sensor with CircuitPython" guide for the wiring and code. Feel free to refer to that guide for extended info on the sensor.

This guide was first published on Aug 29, 2018. It was last updated on Nov 27, 2023.

This page (Wiring) was last updated on Aug 16, 2018.

Text editor powered by tinymce.