I have a Green Mountain pellet smoker and it has a wifi enabled controller on it.
I know it’s not the same thing as your pellet stove but it has all the same elements. They just do a different process.
Maybe you could copy parts of its functionality into your own design.
At least, it could inspire your design.
How good are your sleeps? Are you drinking enough water?
I know that I get brain fog if I sleep poorly or forget to drink enough water.
For coding, I try to explain to myself exactly what I am trying to solve using the most simple explanation possible.
Usually, the program will perform a series of steps. I work on each step, in code, until I solve that step. Then I move on to the next step. Divide and conquer.
Like the other person asked, have you sought out professional help for any possible medical issues? If you have ADHD then a professional can give reliable guidance on how to compensate for the main ADHD symptoms.
Good luck! You CAN do it!!!