Light Density and Temperature Measurer for kids

Light Density and Temperature Measurer for kids

Overview

This project is about observing the temperature and density of light in the surroundings using sensors.

In this light density and temperature measurer we use a photoresistor sensor to measure light density and a temperature sensor for measuring temperature of the surrounding.

Hardware required 

  1. Arduino Uno R3
  2. Resistor
  3. Jumper Wires
  4. Temperature Sensor
  5. Photoresistor Sensor
  6. Breadboard

Schematic Diagram

Fig 1.  Circuit Diagram

Arduino Code : 

int lightSensor = A0;
int tempSensor = A1;


void setup() //Runs once at the start
{
  pinMode(tempSensor, INPUT);
  pinMode(lightSensor, INPUT);
  Serial.begin(9600);
  
}

void loop() //Runs in a constant loop
{
  
  //Just print a line for the light reading
  int lightReading = analogRead(lightSensor);
  Serial.print("Light reading: ");
  Serial.println(lightReading);
  
  int tempReading = analogRead(tempSensor);
  
  //If using 5v input
  float voltage = tempReading * 5.0; 
  
 // Divided by 1024
  voltage /= 1024.0;
  
  //Converting from 10mv per degree
  float tempC = (voltage - 0.5) * 100; 
  
  Serial.print(tempC);
  Serial.println(" degrees C"); //Print as degrees
  
  
  delay(1000); //Use a delay to slow readings
}

Precautions

  1. Connections should be done properly.
  2. Arduino is case Sensitive so code accordingly.
  3. Give different and appropriate colors to the wires.
  4. Use resistors for sensors and LCDs.

Do you have questions regarding our STEM program?

Contact us anytime.

Take your first step into the magical world of coding for kids

Share:

More Posts

Send Us A Message

Coding For kids

Coding Courses for Kids Online

Our courses which are tailored for grades 1 to 12, and our hands-on curriculum seamlessly integrates, preparing students for challenges and inspiring the next generation.

STEM Labs

STEM LAB for Schools

If you are a school searching for a cutting-edge makerspace solution that goes beyond conventional education, look no further. Partner with Makers’ Muse to unlock a world of innovation and transformative learning experiences for your students. 

Coding Toys

STEM LAB for Schools

Discover a revolutionary coding journey for students with our cutting-edge educational toys. Partner with us to unlock innovative learning experiences that transcend traditional education.

Leave a Reply