AQI Lesson Overview - Middle School

Grade Level & Class type

  • Appropriate for: 5th-9th grade
  • Unit: Climate Change
  • Number of students: 20-25 per class
  • Time: Three 40 minute lessons

Lesson Plan and Slides



AQI levels

Lesson Title: Air Quality Index

Lesson Description:

The goal of the lesson was to demonstrate air quality trends in different regional settings and examine how environmental factors can impact the Air Quality Index (AQI) using data science. Students had exposure to R, a data visualization language, to show them how to take large data sets and turn them into graphs that are easier to understand. We showed them how Posit Cloud is used through coding in a whole group demonstration, then used EPA data to compare air quality trends between Portland and Los Angeles in the last two decades. In groups, they looked at handouts of the EPA Tile Plots to practice searching for patterns and trends and critically analyze mistakes of data visualization. Finally, students used AQI data to write argumentative letters to support claims made about community impacts on air quality.

Data Science in the Lesson:

Working with raw data:

Data visualization:

Coding involved:

Lesson Materials

Below you can download individual materials below or download this folder with all materials for this lesson - .zip file.

Also check out the lesson plan.

Student-Facing Materials

  • AQI Middle School Lesson Slides
    • Description: Slides used to teach the AQI lesson over 4 days to middle school students.
  • AQI Atmotube Instructions Slide
    • Description: This slide can be printed out for each group of students to follow the directions for connecting to and using the Atmotubes.
  • AQI Atmotube Lab Doc
    • Description: Document meant to print out and cut into sections so that each student can write down the data while they are testing the Atmotubes with different factors.
  • AQI Atmotube Exit Ticket
    • Description: Document meant to print out and cut into sections so that each student can write down their reflection about the Atmotube lab.
  • EPA AQI Graph for Portland and Los Angeles
    • Description: Image of the EPA AQI scatterplot showing the air quality in Portland, OR and Los Angeles, CA from January 2000 to July 2023 coded with colors for different categories.
  • Online AQI Graphs Coding Tutorial
    • Description: Online tutorial which provides a walk-through on how to deal with large amounts of data and create air quality graphs.
    • In Part 2 AQI Tutorial, there is an option for students to create custom air quality graphs of any location.
  • AQI Graphs Exit Ticket
    • Description: Document meant to print out and cut into sections so that each student can write down their reflection about AQI.
  • AQI Amazon's Warehouse Article
    • Description: Article students can read to understand the context for the impact that a truck warehouse has on a local community. Students can use evidence from this article to support their claim for the argumentative letter.
  • AQI - Portland's Air Quality is Off the Charts Article
    • Description: Article students can read to understand how smoke impacts the air quality in a local community. Students can use evidence from this article to support their claim for the argumentative letter.
  • Air Quality CER Graphic Organizer
    • Description: A graphic organizer to print out for students to use to make a claim about a local issue, support the claim with evidence, and include reasoning to explain how the evidence supports the claim. There is a rubric for how the CER will be scored on a 1- 4 scale.
  • Air Quality CER Digital Version
    • Description: A digital version of the graphic organizer for students to use to make a claim about a local issue, support the claim with evidence, and include reasoning to explain how the evidence supports the claim. There is a rubric for how the CER will be scored on a 1- 4 scale.

Teacher-Facing Materials

Examples of Student Work

AQI Student Example CER

  • Description: Student example of a finished argumentative letter to a local politician using the information from their CER graphic organizer.

Reflection from teachers who have done this lesson

What worked well? Why?

  • Asking students to compare the air quality graphs of Portland and LA went really well. They understood the data visualization and how the EPA had incorrectly graphed the data. Having students test different factors that change air quality with the Atmotubes was also successful. Students really liked trying out different factors like Clorox cleaning wipes or whiteboard markers with the Atmotubes because they could test different things and see the resulting numbers on the app.

What do you feel was missing?

  • I would have given students little papers with questions to answer during the videos so that they stayed engaged. I might have had students compare the 2 graphs in small groups and then discuss the differences as an entire class.

What changes would you make to future iterations? Why?

  • In the future, I would want someone to help make a preset code that made the corrected graphs of the EPA air quality data so that students could copy that code and get to see the correct graphs on their screen. Then students could discuss the differences with their groups and why the two versions of graphs are different. Instead of watching someone else do this part, I am wondering if it would feel more authentic if students discovered the mistake on their own.
    • Note: we have updated the lesson since this feedback, and now there is an opportunity for students to make the graphs themselves. See the online AQI coding tutorial
    • Also check out this coding activity which incorporates moving around the classroom and pretending to be computers in order to introduce coding to students.

What do you believe are some of your students’ major takeaways from this lesson?

  • Students learned that the ProLogis company was planning to build a truck warehouse across the street from their school. The students on the track team were very concerned about their lungs being affected by large amounts of exhaust. Students with asthma were concerned for their safety. The biggest takeaway was learning that different factors can change the air around them and that it will have an effect on their health. Students were also able to compare the graphs of Portland vs Los Angeles and also the corrected graphs made by coding.
Back to top