“What is this actually for?” is a familiar question in programming classes. At New Hartford Senior High School in New York State, teacher Mike Amante answers it with data: in the AP® Computer Science Principles course, part of the Project Lead The Way (PLTW) program, students measure with Vernier Go Direct® sensors, analyze the results and then apply what they have learned in programming projects that reach beyond the traditional lesson.
The path Vernier describes on its blog has two stages: first, a biology investigation into yeast fermentation; then a problem at the school itself — two shop classrooms that kept getting warmer — which became the starting point for a monitoring system written in Python. Here we summarize it and add what is worth knowing before trying it in a Latin American school.
“I want students to see the value in what they’re learning, rather than simply completing an exercise to pass a test. When students see how their skills can be applied to real-world problems, the learning becomes much more meaningful.”Mike Amante, computer science teacher and member of the Vernier Trendsetters Community
First, learning to read the data: yeast fermentation
The way in is a well-known investigation. Students use the Go Direct® CO₂ Gas Sensor to measure the carbon dioxide yeast produces during fermentation, the same process that makes bread rise. With Vernier Graphical Analysis® they watch the concentration change in real time, before writing a single line of code.
They then export their data to Google Sheets™ and work with it: building new graphs, applying trendlines, examining slopes and comparing CO₂ production rates with their classmates. It is computational analysis applied to something they have just observed, and it exercises collaboration along the way.
“If my students can find ways to make data tell a story, and then put that story into action, that’s really what it’s all about,” Amante said.
To repeat the activity
- Go Direct® CO₂ Gas Sensor, which includes a 250 mL Nalgene® bottle for controlled experiments
- Baker’s yeast, sugar and lukewarm water
- A computer, Chromebook, tablet or phone with Vernier Graphical Analysis®
- A spreadsheet for the second part of the analysis
Before you measure
- The sensor needs a 180-second warm-up: switch it on before preparing the mixture.
- It is a gas sensor: keep it above the mixture, where neither foam nor liquid can reach it.
- Its normal operating temperature is 20 to 40 °C; keep the setup within that range.
Questions for the class
- Where is the curve steepest, and what does that say about the yeast?
- What changes if you alter the amount of sugar or the water temperature? How many variables should change at a time?
- Two groups with the same setup get different slopes: what could explain it?
Then, a real problem: shop classrooms without air conditioning
The investigation led to a larger project. Toward the end of the school year, two large shop classrooms were getting increasingly warm because they had no air conditioning, and teachers had started tracking temperatures by hand, with thermometers and written logs.
Amante challenged the computer science students to automate that process.
How the system worked
Artificial intelligence as a helper, not the answer
To develop and refine the application, students also used AI tools, including Claude Code, ChatGPT and Gemini™. Amante provided a project blueprint; the students had to evaluate the AI-generated suggestions, test solutions, troubleshoot technical problems and decide how to make all the components work together.
“This is where the real learning occurred,” Amante said.
A sensor project has an advantage when working with AI: the result can be checked. If the suggested code fails to read the probe, drops records or logs the wrong time, the error shows up in the data and someone has to work out why.
What the data showed
Over approximately three days, the repeated measurements revealed localized temperature differences and patterns that would have been hard to spot from a single reading.
The outcome, in context: plans to improve the classrooms were already underway. The students’ data helped reinforce the case for better cooling, and air conditioning was subsequently installed.
For the class, the project showed that programming and data analysis can inform decisions at their own school. Rather than simply using an existing tool, students researched possible solutions, troubleshot problems and adapted their approach as challenges emerged — preparation Amante sees as valuable for college and careers.
“Students moved from collecting and interpreting experimental data to exploring how programming, automation, and data analysis can be used together to investigate a real-world problem.”Mike Amante
Bringing it to your school in three stages
Amante encourages STEM teachers to look for hands-on opportunities to build data collection into meaningful projects: sensor investigations first and, on that foundation, engineering design, programming and automation. Laid out in stages:
- Measure and interpret, no code: an activity with Graphical Analysis so the class learns to read a curve, a slope and a unit.
- Work the data: export it to a spreadsheet, fit trendlines and compare results across groups.
- Program the collection: write the Python program that reads the sensors, sets how often to log and saves the data.
Getting started in Python with Go Direct sensors
Vernier publishes the godirect module and a Python getting-started guide. It works with Python 3 on Windows® 10, macOS® and Linux computers, Raspberry Pi included, over USB or Bluetooth®. Install the module with pip3 install godirect; the gdx folder, which simplifies your programs, comes with the example download and should sit next to your file.
This example takes one reading per second for about ten minutes and saves it, with date and time, to a CSV file that opens in any spreadsheet:
import csv
import time
from gdx import gdx
gdx = gdx.gdx()
gdx.open(connection='usb')
gdx.select_sensors()
gdx.start(1000)
with open('temperatures.csv', 'w', newline='') as file:
log = csv.writer(file)
for i in range(600):
reading = gdx.read()
if reading is None:
break
log.writerow([time.strftime('%Y-%m-%d %H:%M:%S'), *reading])
gdx.stop()
gdx.close()
When you run it, select_sensors() asks in the terminal which channels to enable, and the number in start() is the interval between readings in milliseconds. To use several probes at once, open() accepts the device names in device_to_open. It is a starting point, not the New Hartford system: sending the data to Google Sheets and building a dashboard are the natural extensions.
Chromebooks, or nothing to install? Web VPython lets students code in Python in the browser and connect Go Direct sensors. Check compatibility before choosing equipment: some devices, such as the spectrometers, the Mini GC and the polarimeter, do not work with the godirect library.
Before leaving a monitor running for days
- Plug the computer into power and turn off automatic sleep.
- Plan how the sensors will be powered: charge batteries between school days or work over USB.
- Test, at the real distances, how many simultaneous Bluetooth connections the computer can hold before installing everything.
- Place the probes at the same height, away from direct sun and heat sources, so the areas can be compared.
- Note which probe is where, and save date and time with every record.
If the class is not coding yet, the Go Direct® Temperature Probe also supports remote data logging: it stores data in its internal memory for later review.
Other nearby problems to investigate
Hot classrooms are a familiar problem across much of Latin America, but the same structure — measure, analyze, automate and present evidence — works for other local questions: how CO₂ changes in a closed room over the school day, how much temperature differs between a shaded and an unshaded courtyard, or which space in the school heats up first in the afternoon. On air quality, see our article about Go Direct sensors and place-based learning.
The equipment
Three components cover both stages of the project. Each one links to its page in our regional store, which lists prices for Chile.
Go Direct® CO₂ Gas Sensor
Measures carbon dioxide (0 to 100,000 ppm), air temperature and relative humidity. Includes a 250 mL bottle.
View on TecnologíasEducativas.cl ↗
Go Direct® Temperature Probe
The probe behind the monitor: real-time readings or logging to internal memory, over Bluetooth or USB.
View on TecnologíasEducativas.cl ↗
Vernier Graphical Analysis®
Data collection and analysis app for the first stage: real-time graphs and export to continue in a spreadsheet.
View on TecnologíasEducativas.cl ↗To cover several areas or groups there is the temperature probe teacher pack, with 8 probes and a charge station.
Districalc: science and programming with real data in Latin America
Districalc is an authorized Vernier distributor and has worked in more than 20 Latin American countries since 1981. We supply Go Direct® sensors and software licenses, and support implementation with teacher training and technical support.
Keep exploring: robotics and programming, biology, artificial intelligence and teacher training.
Want to set up a project like this at your school? Get in touch and we will put together an equipment list based on the course, the computers you already have and what you want to measure.
Source: How Data Collection Helps Students Apply Programming Skills to Real-World Problems, published by Vernier Science Education in November 2026. More resources: Vernier and Python and the godirect library guide.
Ready to have your students program with real data?
Districalc provides the Vernier sensors, software, teacher training and technical support to bring projects like this one to your school, anywhere in Latin America.
Contact UsFrequently asked questions
Do you need to know how to program to use Go Direct sensors?
No. Vernier Graphical Analysis collects, graphs and analyzes data without any code. Programming in Python is an extra step for classes that want to control data collection, automate it or build their own tools.
What computer do you need to read the sensors with Python?
Vernier’s godirect library works with Python 3 on Windows 10, macOS and Linux, Raspberry Pi included, over USB or Bluetooth. On Chromebooks you can use Web VPython, which runs in the browser with no software to install. Not every Vernier instrument is compatible, so check the guide first.
Which sensors did Mike Amante’s class use?
The Go Direct CO₂ Gas Sensor, to measure the carbon dioxide yeast produces during fermentation, and six Go Direct temperature probes to monitor two shop classrooms.
What role did artificial intelligence play in the project?
Students used tools such as Claude Code, ChatGPT and Gemini to develop and refine the application. The teacher provided a project blueprint, and the students evaluated suggestions, tested solutions, fixed problems and decided how to integrate the parts.
Is this project useful if the school’s problem is not heat?
Yes. What transfers is the method: choose a local question you can measure, learn to interpret the data, automate the collection and present the evidence. Temperature is simply an accessible starting point.