Cloud Detector Project

The purpose of this project is to detect clouds.  At a dark site, clouds are dark.  Thin clouds are invisible.  This cloud detector has no trouble seeing them.  It takes the temperature of the sky, and compares it with ground temperature. A very clear sky will often be 60deg F lower than the ground temperature.  A cloudy sky will have  10 - 20 deg difference.  This version of the project also gives you the humidity as that can affect seeing also. 

This project is a remake of a project done several years ago.   When I got down to NM, I found the IR thermometer no longer worked and the 2 line LCD panel had died.  So I rebuilt the project and documented it with pictures.  I haven't done the little circuit diagram yet so it will appear later.  The working ino file is given below. 

Assembly of the IR thermometer sensor box which will be mounted on the shed. It needs 4 connections

perfect to use with Telephone connector wire (unstranded) Pins are not used; I soldered the 4 wires to the sensor
+,-, SCL, SDA
 After soldering, I put silicone around (but not on top of) the sensor and put in the hole in the box.  I hold it in place with a clamp until it dries. Here is what the mounted IR-thermometer looks like.
Water-proofing the sensor box. 

I put silicone along the joints and then pressed the back into place. I then coated the back with silicone Finally I filled the hole around the cable with silicone. The sensor is done.
I then printed a 3D-case, and put in a arduino uno, 2 line LCD, and a DHT-22 Temperature/Humidity

This is the assembled box.  The DHT22 is mounted on the right.  The LCD is mounted on the front (down). The arduino uno is in the center and its connections go out the back as does the cable to the IR thermometer.
This is a close up of the DHT22 mounting. It needs 3 connections.
(+), (-), and data.  The data line goes to digital pin 4 on the uno.
The orange strip behind it is a power strip.  One line is plus, the other minus.  The DHT22, IR-thermometer, LCD display are all hooked to the uno's power through this strip.
This is a view of the back of the case.  It shows the uno's power connection, the usb connection to a computer if powered that way, and the 4 wire connection coming out to the IR thermometer. 
 Final product after the box was put on.  To hold the wires in place in the arduino, I used wire glue, a conductive glue. 
 I cut the telephone wire and put a terminal in.  I can work on the box or the sensor without disturbing the other.
 The telephone wire stays inside for as long as possible and then goes through a drilled hole to the outside.
 The wire and sensor are glued to the outside of the shed with the sensor looking straight up.  

John Duchek,
Aug 23, 2018, 8:03 PM