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: