I wanted to be able to monitor the temperature inside of my enclosure. This helps me to maintain the right temperature by changing the exhaust fan speed.
You will need this sensor for the build. The module is inexpensive and is prewired with resistor and leds.
Temperature Sensor Module
I also ordered Pi jumper extensions
Jumper Wires for Raspberry Pi
Works with the Room Temperature plugin (You do have to connect to your Octopi via ssh to modify the /boot/config.txt file with "putty") The directions are in the links.
https://plugins.octoprint.org/plugins/roomtemp/
https://www.raspberrypi.org/documentation/remote-access/ssh/windows.md
Red - 5V
Black - Ground
Yellow - GPIO4
The sensor slides in and I used double sided tape to install in the back of an enclosure.