3. Example Code for UNIHIKER K10-Hydroponic System Sensing How to build a UNIHIKER K10 hydroponic pH and temperature monitor: prepare the Gravity analog pH sensor SEN0169-V2, DS18B20 temperature kit, PH2.0 cables, and install Arduino IDE plus the DFRobot_PH library, then wire the pH output to P0 and DS18B20 data to P1 according to the wiring diagram. It’s like giving your hydroponic tank a smart thermometer and pH meter that report to a mini touchscreen computer. Before first use or monthly, perform two‑point calibration with pH 7.0 and 4.0 buffer; rinse the probe with distilled water between solutions, stabilize in pH 7.0, enter serial commands enterph, calph, then exitph to store parameters, and repeat the same sequence in pH 4.0 so the library saves both points to EEPROM for accurate readings. The calibration example code uses PH_PIN P0, reads ADC voltage every second, optionally calls readTemperature for compensation, and uses ph.readPH plus ph.calibration with serial commands to adjust slope and offset. The K10 demo sample integrates the UNIHIKER_K10 screen, OneWire DS18B20, and DFRobot_PH: it reads DS18B20 temperature, falls back to 25 °C if the sensor fails, converts ADC counts to millivolts using ADC_MAX 4095 and Vref 3300 mV, then calls ph.readPH(voltageMv, temperatureC) and prints temperature, voltage, and pH to the serial monitor while also drawing them on the K10 canvas. Users see live updates every second, including a “Comp: pH(T) enabled” line that confirms temperature compensation is active, making it ideal for classroom demos or DIY nutrient monitoring. To protect measurement accuracy, keep the BNC connector and signal conversion board dry, mount the board on nylon pillars away from wet or conductive surfaces, and avoid any impact on the fragile glass bulb at the probe tip. After each measurement, unplug the probe from the board if power is off, store the tip in 3 mol/L KCl inside the protective cap to keep the glass hydrated, and never leave the probe long‑term in distilled water, protein‑rich solutions, acid fluoride, or silicone oil. For long‑term drift or reduced slope (slow, unstable readings), clean the sensing end according to contamination type; in severe cases, briefly etch in 4% HF for 3–5 seconds, rinse, soak in 0.1 mol/L HCl for a few hours, then rinse with deionized water, while avoiding aggressive polycarbonate‑soluble cleaners such as carbon tetrachloride or trichloroethylene that can permanently damage the glass surface.