Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Big thanks @tlfong01 only your formula works for me - just a bit edited ;) So when I read data via command: gpio -x pcf8591:120:0x48 aread 120 .Then I calculate phValue: 7 + ((parseFloat(data) * 3.3 / 255) - 2.5) * (-5.7)