In the wake of the water crisis in Flint, Michigan, a Colorado middle schooler has invented a better way to test lead levels in water, as The Cut reports.

Gitanjali Rao, an 11-year-old seventh grader in Lone Tree, Colorado just won the 2017 Discovery Education 3M Young Scientist Challenge, taking home $25,000 for the water-quality testing device she invented, called Tethys.

Rao was inspired to create the device after watching Flint's water crisis unfold over the last few years. In 2014, after the city of Flint cut costs by switching water sources used for its tap water and failed to treat it properly, lead levels in the city's water skyrocketed. By 2015, researchers testing the water found that 40 percent of homes in the city had elevated lead levels in their water, and recommended the state declare Flint's water unsafe for drinking or cooking. In December of that year, the city declared a state of emergency. Researchers have found that the lead-poisoned water resulted in a "horrifyingly large" impact on fetal death rates as well as leading to a Legionnaires' disease outbreak that killed 12 people.

Rao's parents are engineers, and she watched them as they tried to test the lead in their own house, experiencing firsthand how complicated it could be. She spotted news of a cutting-edge technology for detecting hazardous substances on MIT's engineering department website (which she checks regularly just to see "if there's anything new," as ABC News reports) then set to work creating Tethys. The device works with carbon nanotube sensors to detect lead levels faster than other current techniques, sending the results to a smartphone app.

As one of 10 finalists for the Young Scientist Challenge, Rao spent the summer working with a 3M scientist to refine her device, then presented the prototype to a panel of judges from 3M and schools across the country.

The contamination crisis in Flint is still ongoing, and Rao's invention could have a significant impact. In March 2017, Flint officials cautioned that it could be as long as two more years until the city's tap water will be safe enough to drink without filtering. The state of Michigan now plans to replace water pipes leading to 18,000 households by 2020. Until then, residents using water filters could use a device like Tethys to make sure the water they're drinking is safe. Rao plans to put most of the $25,000 prize money back into her project with the hopes of making the device commercially available.

[h/t The Cut]

All images by Andy King, courtesy of the Discovery Education 3M Young Scientist Challenge.