Pupils at Fitzwilliam Primary School have raised hundreds of pounds to help buy a defibrillator for the school.
Youngsters and staff reached their target of £900 to buy the machine by holding a Wear Red Day event at the school last Friday.
The event was held to coincide with the British Heart Foundation’s national Wear It Beat It campaign, with pupils and staff donating 20p each to turn up to school in their favourite red clothes.
The money raised will also fund training for 12 members of staff in how to use the defibrillator.
Susan Harrison, headteacher, said the school had been working closely with the ambulance service and with pupils in year six learning CPR and life saving techniques.