This is about as easy as a project can get ...
First check to make sure your your non working solar light , doesn't just need a new battery !!!! Yes , most need to be replaced every year or so ...and most need special batteries that are made for solar lights .
In my case , the sensors gave out after a couple of years .
But , the lights were good ones , made of metal and glass , so my husband held onto them .