Uploaded March 2016 | Updated September 2026, 1 week ago
In this video, I setup a Raspberry Pi temperature sensor circuit and some code. This is a pretty easy tutorial and is a great way to introduce yourself to sensors.
Full Tutorial: pimylifeup.com/raspberry-pi-temperature-sensor
In this tutorial I will be using the waterproof version of the ds18B20 sensor. This cool sensor can provide super accurate temperatures and can withstand heat up to about 120°C (250°F). The sensor also is digital so we’re able to easily hook it up to the Raspberry Pi and get the required data. If you get a plain version of the ds18B20 it will look just like a transistor unlike the version that I am using.
If you have trouble getting the circuit together then you can find a circuit diagram that shows you exactly where to put all the parts over at pimylifeup.com
The code for this tutorial is probably the most complex part. This is because we need to process the data that comes from the sensor and in its raw form isn’t very user friendly. I can understand the code maybe being a little too hard to understand for anyone new to coding so I briefly explain the basics there is to know.
As you can imagine this Raspberry Pi temperature sensor tutorial can be extended quite a bit. For example, instead of discarding the data after every time we check we can instead store it in a text file or even a database. We can then use this data to plot nice looking graphs so you can see temperature changes over the course of a day, week, month or even a year.
If you’re wondering what equipment you will need for this tutorial, then you can find the full list over at the website linked above.
I hope you are able to get this Raspberry Pi temperature sensor circuit and code working correctly. If you do come across any problems, please be sure to leave a comment below or over at pimylifeup.com
In this video, I setup a Raspberry Pi temperature sensor circuit and some code. This is a pretty easy tutorial and is a great way to introduce yourself to sensors.
Full Tutorial: pimylifeup.com/raspberry-pi-temperature-sensor
In this tutorial I will be using the waterproof version of the ds18B20 sensor. This cool sensor can provide super accurate temperatures and can withstand heat up to about 120°C (250°F). The sensor also is digital so we’re able to easily hook it up to the Raspberry Pi and get the required data. If you get a plain version of the ds18B20 it will look just like a transistor unlike the version that I am using.
If you have trouble getting the circuit together then you can find a circuit diagram that shows you exactly where to put all the parts over at pimylifeup.com
The code for this tutorial is probably the most complex part. This is because we need to process the data that comes from the sensor and in its raw form isn’t very user friendly. I can understand the code maybe being a little too hard to understand for anyone new to coding so I briefly explain the basics there is to know.
As you can imagine this Raspberry Pi temperature sensor tutorial can be extended quite a bit. For example, instead of discarding the data after every time we check we can instead store it in a text file or even a database. We can then use this data to plot nice looking graphs so you can see temperature changes over the course of a day, week, month or even a year.
If you’re wondering what equipment you will need for this tutorial, then you can find the full list over at the website linked above.
I hope you are able to get this Raspberry Pi temperature sensor circuit and code working correctly. If you do come across any problems, please be sure to leave a comment below or over at pimylifeup.com






![An Easy Raspberry Pi Music Player Tutorial [Archived]
In this video I will be putting together a Raspberry Pi music player that you can control from any device that has browser within your local network.
Full Tutorial: https://pimylifeup.com/raspberry-pi-music-player/
For this project I use a prebuilt software image known as the Pi MusicBox. This is a software package that allows you to connect to several different services such as Spotify, google music and more. It also lets you play local music files so if you have an offline library you can still play that.
This is a headless music player so you won’t be able to control the player on the Pi itself. You will need to use a different device such as your phone, computer or anything else that has a browser to be able to control it.
You won’t need any extra equipment apart from the standard parts you need for the Raspberry Pi. However, it has been recommended that you invest in a USB audio card or a sound card for the Pi so that you can get better audio. This is entirely optional and I found the audio through the HDMI just fine.
Since the Raspberry Pi music server uses a prebuilt image you can’t just easily install this onto an existing operating system. However, once you have installed the software you can add or do extra stuff on the Pi as it still contains everything you get with normal Raspbian.
It is very important you have your network setup for this project because you won’t be able to control it via the Pi directly. With the Ethernet just simply plug it in. The WiFi you will need to do a few extra steps to getting it working correctly.
There are a few security issues with this particular software package that I detail over at the website linked above. If you have concerns, then be sure to head over to the website and read up on it.
Hopefully you have been able to setup this Raspberry Pi music player correctly and without any issue. If you do run into any troubles, have feedback or anything else then be sure to drop a comment below or over at pimylifeup.com. An Easy Raspberry Pi Music Player Tutorial [Archived]](https://i.ytimg.com/vi/xRYwM8jTb-8/mqdefault.jpg)



