DIY Pocket Air Temperature Checker

Introduction: DIY Pocket Air Temperature Checker

About: I love to make stuff, including food, crafts, and especially electronics.

We will use a Nokia 5110 Display, Digital Temperature module, and an Arduino Uno to make this. A 9V jack with wires, not a barrel, is also needed, along with a switch, and wires.

A soldering iron may be needed, but you can also just twist wires.

Step 1: Wiring

First, take the digital temperature module and the Arduino.

Connect the sensor in this fashion:

A0 to Arduino pin A0, G to ground, + to 5V, and D0 to Pin 3.

The sensor used is from the Elegoo Sensor V2 Kit, but I suppose these are quite common. A picture is attached.

Step 2: Sensor Calibration

Not all sensors are perfect at detection- you may need to fiddle with them a bit!

Please plug your Arduino in to your computer.

A .txt file is above containing the code for sensor calibration.

(Please not that this code is not my property but elegoo's. This code can be found here:

The .txt file is not malware. It is plain text and the text is copied into your Arduino IDE.

Run the code, and open the Serial Monitor.

Take a guide, this can be a commercial temperature monitor, a thermostat, or AC.

There is a fine-precision potentiometer on the sensor. Take a small screwdriver and adjust it to the temperature on the AC.

As shown in the second image, my sensor gave readings of 70 degrees C!

Step 3: Connect the Display.

This is a wiring guide from Last Minute Engineers that I followed. However, instead of pin 3, I used pin 2 as 3 was already in use.

There are 8 pins.

Connect RST to pin 2, CE to 4, DC to 5, DIR to 6, CLK to 7. VCC doesn't need to be connected as BL is for backlight and also powers the display. However, if you are not looking to use the backlight, connect VCC to power.

Both should be connected to 3.3v. GND goes to ground.

Step 4: Submit the Code!

This time, the actual code!

A .txt file is again attached.

Note that there are no automatic updates, and you'll have to incorporate a button for resetting the Arduino.

Sorry, I'm still a newbie.

This code has C and F temperatures.

Now, use this!

Oh yeah, and also forgot to say...

It refreshes every 10 seconds or so but couldn't figure out how to clear it each refresh...

Sorry... press reset... and if you figure out a solution please let me know!

Step 5: Battery!

To conserve space, we will use the VIN pin.

Also attach a switch to turn the Arduino on and off.

Apparently, twisting wires onto a tiny breadboard-unfriendly switch was too hard, so I soldered the wires on.

Connect a 9V battery to the clip, turn it on with the switch and it should work!

Note that there are 3 pins on a switch. Attach the a pin to the center and the other one to one of the sides.

Step 6: Case!

Of course, this jumble of wires isn't going to fit. Let's make a simple cardboard case to keep it neat.

Draw out a rectangle that is just enough to fit the arduino. You also add a compartment for the battery.

Please note that my case is really ugly.

Really really ugly.

I mean, It does look like a gameboy.


I decided to make the 2 ports open for expansion and any other thing I may require with the screen...

Happy tinkering!

Note that for image 1, the device was still waiting for sensor result so nothing displayed


I couldn't find my DHT11 sensor. Using that, you could have both temperature and humidity.

You could also do stuff like acceleration, light levels, UV levels, air quality, etc.

Using an Arduino Nano would be smaller, and you could use a LCD over I2C, but I2C didn't work for me for some reason(I think it's a problem with my board)

You could even try using rechargeable batteries.

Oh yeah, and if you use a pulse sensor that'd be a cheap way to check pulse.


Pocket-Sized Speed Challenge

Participated in the
Pocket-Sized Speed Challenge

Be the First to Share


    • Halloween Contest

      Halloween Contest
    • Fandom Contest

      Fandom Contest
    • Crayons Challenge

      Crayons Challenge



    2 years ago

    what a cool project! To make the size of the hole thing smaller, you could use a arduino nano. They are half the size of a regular arduino. You got my vote for the contest!


    Reply 2 years ago

    Thank you!

    I did put a bit in the end about a Nano but still, thanks!
    To be fair though.
    I actually didn't think much about it, but now you mentioned it again...
    Not only can you use a nano, you could use those bluetooth/wifi ones... hmm...
    Not to say they are way more powerful than an uno.
    I might get one and submit this one again for the upcoming remix one...
    Slimmer, more energy efficient and more sensors.

    Thanks again!


    Reply 2 years ago

    Nice project! Thanks for sharing. There are a lot of really cool directions you could take something like this, with a bluetooth or wifi capable microcontroller you could go with a 100% virtual display on your phone or other device and ditch the LCD display if you wanted to. There are also many options for the sensor with something like a BME280 sensor you get humidity and barometric data in addition to temperature, the possibilities are almost endless.


    Reply 2 years ago

    Thank you!
    I agree!
    Ditching the LCD would save lots of pins and space. Connecting to a phone would be useful!
    Thank you for your suggestions, I might apply these in the future for a remake!


    Reply 2 years ago

    If you do a remake, please share, I'd love to see where you take this, and I'm pretty sure I'm not the only one.


    Reply 2 years ago

    I appreciate your support.
    I think there's another contest soon, in about 2-3 months, asking you to remake a previous project...

    I'm hoping to either win a gift card to buy stuff to use with my next project(namely Arduino Nanos) and stuff. Of course I'd probably also get some stuff even if I don't win...

    I have a bunch of sensors and am considering getting some more technical ones such as pulse, air quality, etc.

    And I'll definitely make a better case next time :).


    Reply 2 years ago

    I suppose that an ESP8266/32 would be much easier with connectivity but then I don't have a windows system and my Boot Partition isn't working... but the ESP would be for low cost. Hmm.