If you are burnt out. This is a good way to recharge. But the work is hard and it doesn't get easier.
Did this a few years ago and I it helped me get back to software engineering.
(New installation work is maybe less interesting, but if you're the sort of developer who enjoys logic-ing their way through understanding why a complicated, undocumented system is behaving the way it's behaving, and why did the last guy decide to connect this to that, a hundred year old house that's been gradually updated from knob-and-tube might be just the thing.)
Look for jobs where your background gives you more of a leg up, and are done indoors, with a stronger emphasis on health and safety.
Things like:
Industrial Electrical
Automation Technician
Machine Operator
Millwright
Avoid jobs done for small crews with a more cowboy attitude, like most residential trades.
But I won’t judge and I think I can help! I would recommend HVAC or electrical work for a programmer. I manage the software team of a relatively large trade company which specializes in these fields. Many of our electricians are hobbyist programmers. Having done field work with both electricians and HVAC technicians I can say that both fields will provide you with challenging problems, and a familiar diagnostic and repair process to fixing software. I think HVAC is much easier to jump in to compared to electrical work (and you will still work on low voltage electrical components) so I would recommend looking for work in that space.
HOWEVER this is extremely hard work. I would not willingly trade places with any of our electricians. While it can be very fulfilling and enjoyable for the right type of person, what you’re talking about is essentially taking less pay to do more and harder work. And in that sense I would urge you to reconsider. But if it’s something that truly truly interests you, HVAC should be really easy to get into as long as it’s an active industry in your area.
Most electricians easily work into their 60s so age should not be a factor. You will need to start off as an apprentice but given your demonstrated technical ability, I would hope you’ll be able to identify niche jobs within the profession that you will give you leg up for more rapid advancement.
The troubleshooting and diagnosis, as well as a combination of tech skills and curiosity is intriguing.
However, like most trades it is gated on years being an apprentice and being an apprentice at an older age is not easy because of the tasks given to apprentices.
This is effectively what the OP is asking.
Not quite 2 months ago I launched a residential handyman business (no website yet). My day job is in software engineering, but I also have the handyman work as a part-time thing. So far, it's working out pretty good. My weekend work is completely different from my M-F day job. One of the things I like about handyman work is that it's not all the same. It's a bit of carpentry, plumbing, and electrical combined in various ways. I'm not a licensed plumber or electrician (nor a contractor), so I steer clear of jobs that require them.
IMO working with nature is a lot like programming. The genetic material (seeds) are like packages, the soil cycle is like memory management, and the water and sun are like your system's resources.
You get the satisfaction of building something beautiful (and eating it).
You are constantly learning about genetics, variants, processes and the language of plants.
There are role models and teachers creating new processes and testing theories (just like programming).
You are involving your entire body, puts you outside, and is amazing on your mind.
If you're looking to make money doing it, you could pick a high-value product like mushrooms, sprouts, or hot sauce and bring it to the farmer's market.
I say this with lots of experience. I do a lot of trades work as a hobby, but the reality is in most cases it is labor of love. I'd be more efficient with my time and money by hiring it out.
About to start working on a personal project involving cement: making planters for small fruit trees.
The reason: to learn more about cement, since my plan is to set up concrete piers for a future cabin. And, to eventually learn masonry for making a concrete + rock house.
I do have a bit of back pain already from a desk IT job. However I am relatively fit and I think with more calisthenics I'll improve my back & ab muscles to reduce my back pain.