Despite the initial solution from ChatGPT seemed like absolute bs, trying out solution and giving feedback to ChatGPT really helped narrow down to some potential issues which seemed to be correct after double checking the new solution. (I hate hardware interfacing)