Measure pH, conductivity, temperature, humidity, nitrogen, phosphorus, and potassium using the JXBS-3001-RS485- SOIL SENSOR

It is in principle possible to make an electrochemical probe using ion-selective electrodes, but most commercially available "NPK" probes for the consumer market do not use such technology, and likely just extrapolate nutrient concentrations based on nonspecific electrical conductivity readings:

https://www.mdpi.com/1424-8220/22/23/9288