Pupils at Oatlands Junior School are "absolutely thrilled" after raising enough money to buy and install a life-saving defibrillator.
Children raised £361 by taking part in the school's healthy heart enterprise week, and secured the remaining funds through a non-school uniform day.
Teacher Samantha Joseph said: "As a school we are always trying to work with the community around the Oatlands area to help wherever we can, and we are really happy that we have been able to provide something for the community, the school and the wider area with the defibrillator.
"We just want people to know it's here, and hopefully it will make a difference and potentially save lives if there is an emergency in the area. The children are absolutely thrilled that they have been able to get the defibrillator and raise money through their hard work and efforts."
The defibrillator was proudly launched in a whole school assembly on October 5.
Headteacher Jill Cooper said: "I am incredibly proud of all the children at Oatlands Junior School who have worked hard as a team to raise money for such an important piece of life saving equipment."
Earlier this year pupils raised £520 for the Yorkshire Wildlife Trust and are currently collecting Harvest Festival food for the Harrogate Homeless Project.