A Denbighshire primary school has undergone work to improve energy efficiency.