Both intend to study mechanical engineering at Canterbury University next year.
NIWA Science Fair co-ordinator, Tracey Burton, was the chief judge at the event.
Mrs Burton said she was impressed by the students' work.
"The standard was really high this year. There was a lot more original thinking this year than other years. These projects are making a difference to kids and their communities, and helping with real-life problems."
She said it was a slight difference that separated first and second place.
"The boys' [Josh and Christian's] work was inspiring. I'm also impressed by the time commitment outside school that all students put in."
The NIWA Best in Fair award overall winner award went to James Zingel, 14, from Bethlehem College in Tauranga. His 'Gran check' monitors his grandmother through a sensor and sends emails about movements back to his mother.
He said he was still in shock at his first place. "I was not expecting to win."
He said he made the device as his gran was in her 70s and lived alone in the countryside.
Grant Gibson, deputy chairman of the Science Fair committee, said the fair was in its 40th year.
There had been 45 judges from NIWA, Scion and local schools, who viewed more than 132 exhibitions from 150 students in the Bay of Plenty area.