I'm sorry to hear that.
Unfortunately, the Adafruit guide is
incorrect.
If you had simply bought our pH kit, the equipment would have worked perfectly.
The carrier board the pH circuit sits on provides electrical isolation and removes the need for a perfboard.
If you put it in your enclosure, you would be done.
I need a clean power source and good isolation:
Please see page 7 of the EZO-pH datasheet.
https://files.atlas-scientific.com/pH_EZO_Datasheet.pdf
Atlas Scientific is very transparent about these issues and how to resolve them.
We tell you that electrical isolation is very important.
We don't tell you that at the back of the datasheet where no one looks.
We tell you on page 7.
Don't want to buy one from us.
That's fine.
On page 8, we show you how to make one from scratch.
Aside from moving the isolator and pH circuit away from the raspberry pi and possibly installing that circuit inside a metal box
That's not your problem at all.
Please see page 7 of the EZO-pH datasheet.
You will see it says NEVER use Perfboards or Protoboards
https://files.atlas-scientific.com/pH_EZO_Datasheet.pdf
You are using a Perfboard.
I understand that you trusted the Adafruit guide.
They are a good source of info.
Unfortunately, this time they got it wrong.
Don't worry, it can be fixed.
And you don't need to buy anything.
Remove the pH circuit and soak your perfboard in alcohol for 30 min.
Brush it lightly with a soft toothbrush.
YOU MUST REMOVE ALL THE FLUX RESIDUE FROM YOUR PERFBOARD.
Flux residue is incompatible with chemical sensors.
But will that fix my problem?
YES.
We have known about this issue for 15 years.
I'm very sorry they made an incorrect guide.
Adafruit is located down the street from us.
We buy their CPU modules for some of our products.
Like this:
https://atlas-scientific.com/product/bare-bones-wi-fi-aquaponics-kit/
Adafruit has never reached out to us.
Not once.
Let me know if you need any more help.