Lost sketch

Hi folks, I believe this is a lost cause, but here goes. My laptop died and I lost my sketches, bad you might say, but I have my water heating and space heating controlled by an ATmega
328P programmed using arduino. I't's developing bugs and I have no way to get in there and fix. E.G.pumps staying on against closed valves, relays chattering. Is there any way of recreating the sketch from the code on the chip???
Thanks in advance DmcC.

Nope. Can you pull the hard drive and use it as an external drive to access the original .ino file?

There is a way to use avrdude to pull the binary code out of the chip, but all of the good stuff (variable names, function names, comments, etc.) are gone and cannot be recreated from the chip.

Just because your laptop died does not necessarily mean that your hard drive cannot be recovered.

In the future (as you well know by now) you should keep a backup on a flash drive and/or "in the cloud" and/or on GitHub and/or...

Good Luck!