The prescient prophylactic has a built-in indicator that alters its colour depending on what infection it picks up. It was revealed at the TeenTech Awards in London where it won the health category.
Called the S.T.EYE, the project was the creation of Daanyaal Ali, 14, Muaz Nawaz, 13 and Chirag Shah, 14.
"We created the S.T.EYE as a new way for STI detection to help the future of the next generation," said Daanyaal Ali, 14 from Isaan Newton Academy in Illford.
"We wanted to make something that make detecting harmful STIs safer than ever before, so that people can take immediate action in the privacy of their own homes without the invasive procedures at the doctors.
"We've made sure we're able to give peace of mind to users and make sure people can be even more responsible than ever before."
Muaz Nawaz, Daanyaal Ali and Chirag Shah, inventors of the S.T.EYE meet Dr Christian Jessen from TV's Embarrassing Bodies at the TeenTech Awards
The S.T.EYE was only one of the projects on display at the TeenTech awards, which showcases the inventions of students using science and technology to solve real problems in a range of different categories.
As a prize for winning the health category Daanyaal, Muaz and Chirag will be invited to a reception at Buckingham Palace in the autumn.
"We encourage students to take their ideas out of the classroom by putting them face-to-face with industry professionals, helping to open their eyes to the real potential of their ideas," said TeenTech’s founder and CEO, Maggie Philbin.
Other inventions on show at the awards included shoes that use the energy of walking to charge devices while on the go and wi-fi hair accessories that match the colour of clothing.
Another invention called the eWaterTap is a device to be used in rural Africa to help communities manage their water systems.