Agricultural engineers have demonstrated that post-quantum cryptographic algorithms can operate directly on low-cost edge hardware to secure greenhouse telemetry during extended crop production. In an experimental evaluation conducted over a 53-day lettuce cultivation trial, researchers deployed an application-layer security framework on an ESP32-S3 microcontroller to safeguard environmental and nutrient data against potential interception and data manipulation. The system integrated CRYSTALS-Kyber512 for quantum-resistant key encapsulation, ChaCha20-Poly1305 for symmetric authenticated encryption, and CRYSTALS-Dilithium2 for digital signatures. Operating across a nominal five-minute telemetry cycle, the edge device continuously acquired multi-parameter environmental observations, encrypted and signed the measurement payloads, and published them over secure transport to a cloud broker without experiencing cryptographic failure or disrupting physical crop management routines.
The study addresses an emerging intersection between automated precision agriculture and cybersecurity vulnerabilities in connected farming environments. Modern smart agriculture architectures routinely deploy heterogeneous sensor networks, cloud dashboards, and edge analytics to regulate critical parameters such as solution moisture, air temperature, relative humidity, and macronutrient availability. While continuous sensing enhances resource efficiency and crop yield in controlled-environment agriculture, networked automation introduces substantial attack surfaces across device, network, and cloud layers. Attackers targeting smart agricultural networks can inject false telemetry, manipulate sensor readings, or initiate denial-of-service disruptions that trigger inappropriate nutrient dosing, erroneous irrigation cycles, or complete operational shutdowns. Furthermore, the advent of quantum computing threatens widely deployed classical public-key cryptosystems, including elliptic-curve cryptography and RSA, establishing an urgent operational requirement to evaluate quantum-resilient cryptographic alternatives within resource-constrained edge hardware.
To evaluate post-quantum defenses in an operational setting, the research team constructed an edge-to-cloud telemetry framework grounded in recent cryptographic standards established by the National Institute of Standards and Technology. The framework implemented the official PQ-Crystals reference implementations of CRYSTALS-Kyber and CRYSTALS-Dilithium, which have been formalized in the emerging NIST FIPS 203 and FIPS 204 standards, respectively. For symmetric authenticated encryption, the authors selected ChaCha20-Poly1305 because it provides high computational throughput and compact, constant-time software execution on embedded microcontrollers lacking dedicated hardware acceleration for the Advanced Encryption Standard. Unlike table-driven block ciphers, ChaCha20 relies on simple arithmetic operations that reduce side-channel vulnerabilities and implementation complexity on constrained processors, making it uniquely compatible with low-power agricultural telemetry nodes.
Executing lattice-based post-quantum algorithms alongside real-time environmental data acquisition introduced acute computational challenges that necessitated a dedicated multi-threaded firmware architecture. Developed using the FreeRTOS real-time operating system, the firmware partitioned tasks across the dual cores of the ESP32-S3 to prevent high-latency cryptographic calculations from blocking time-sensitive physical actuation and sensing routines. Core 0 was assigned to sensor acquisition and confidentiality processing, executing scheduled data collection from digital and serial instruments before pushing serialized JSON payloads into an asynchronous queue for Kyber512 encapsulation and ChaCha20-Poly1305 encryption. Core 1 was dedicated exclusively to cryptographic integrity processing and network transmission, retrieving encrypted payloads, generating ephemeral Dilithium2 key pairs, producing digital signatures, and preparing outgoing messages. This dual-core isolation ensured that computationally demanding signature generation did not delay the grow-light relay control or interfere with Wi-Fi networking stacks.
To overcome network volatility common to agricultural facilities and greenhouse structures, the communication layer integrated a resilient transport strategy using MQTT over Transport Layer Security. Whenever an encrypted message publication encountered an unstable wireless link, the edge firmware engaged a non-blocking retry loop driven by a Full Jitter exponential backoff algorithm. By injecting randomized delay intervals into successive transmission attempts, this backoff mechanism prevented recurrent packet collisions, mitigated persistent connection contention, and preserved communication continuity across variable wireless conditions. The resulting payloads were transmitted to the cloud-hosted HiveMQ broker under a designated topic, establishing a two-tiered security model where transport-layer TLS channel protection operated in tandem with application-layer post-quantum payload encryption.
The physical testbed comprised a multi-tier hydroponic lettuce system utilizing three unplasticized polyvinyl chloride grow channels supplied by a continuously circulating nutrient reservoir. Seedlings of Lactuca sativa were positioned in net cups along each channel beneath an overhead light-emitting diode luminaire automated by an edge-controlled AC relay. Environmental monitoring was maintained using an RS-485 Modbus interface linking the microcontroller via a MAX3485 transceiver to an Electro-Chemical Devices T80 transmitter. The transmitter was equipped with an S80 nitrate ion-selective electrode paired with an S80 chloride ion-selective electrode. Because nitrate electrodes exhibit known cross-sensitivity to chloride ions naturally present in fertilizer solutions, the transmitter was configured with an interference compensation factor of 1 part nitrate to 250 parts chloride. Complementary digital sensors, including a DS18B20 probe and a DHT22 module, captured water temperature, ambient air temperature, and canopy relative humidity.
Rigorous architectural benchmarking revealed that parallel task execution was strictly essential to resolve operational bottlenecks identified in single-core baselines. When executed sequentially on a single core, the six-second sensor polling cycle and the Dilithium2 signing routine created severe thread contention, generating substantial execution jitter where signing durations varied widely between 37.164 milliseconds and 757.000 milliseconds due to interrupt overhead and sensor timeouts. In contrast, dedicating Core 0 to physical sensing and Core 1 to cryptographic processing decoupled sensor acquisition from the hardware true random number generator latency. Microsecond-resolution timing across 4,649 benchmark iterations confirmed that Kyber512 encapsulation executed in an average of 8.327 milliseconds with a standard deviation of 0.033 milliseconds, while ChaCha20-Poly1305 authenticated encryption required a mean of 0.298 milliseconds with a standard deviation of 0.007 milliseconds.
Cryptographic evaluation further established the operational profile of lattice-based signature generation on the microcontroller. Dilithium2 key generation demonstrated consistent timing, averaging 22.135 milliseconds with a standard deviation of 0.194 milliseconds and spanning a minimum of 21.551 milliseconds to a maximum of 22.893 milliseconds. Dilithium2 digital signing exhibited the highest execution variability across the benchmark suite, yielding a mean latency of 83.696 milliseconds, a median of 65.595 milliseconds, and a standard deviation of 55.880 milliseconds, while peaking at 757.000 milliseconds under live operating conditions. This observed variability stemmed from hardware random-number acquisition delays, operating system scheduling, and background wireless activities. Despite these intermittent peaks, signing latencies remained negligible relative to the five-minute sampling interval, and the device retained approximately 8.4 megabytes of free heap memory alongside stable FreeRTOS task stack high-water marks.
On the backend infrastructure, incoming telemetry was intercepted, authenticated, and decrypted in real time by a custom C# application running on the .NET runtime. The application interfaced with an unmanaged Windows dynamic-link library compiled directly from the official PQ-Crystals C reference source code through a Platform Invocation interface, guaranteeing algorithmic parity with the edge firmware. For every incoming payload, the library executed Dilithium2 signature verification using the transmitted public key and performed Kyber512 decapsulation using the static server secret key. Over 52.64 days of continuous logging, the backend recorded 14,027 raw telemetry records and 14,026 unique timestamped records, reflecting an apparent backend completeness of approximately 92.5 percent relative to the 15,160 nominal five-minute intervals expected. Inter-arrival intervals averaged 5.41 minutes with a median of 5.32 minutes, and zero signature verification or decryption failures were observed throughout the deployment.
A comparative analysis contextualized the trade-offs between post-quantum schemes and classical elliptic-curve cryptography such as ECDH and ECDSA. While classical mechanisms require public keys and signatures spanning only tens of bytes and exhibit minimal computational overhead, they remain fundamentally vulnerable to future quantum processors. The post-quantum implementation produced protected telemetry packets averaging approximately 9.4 kilobytes, generating higher communication overhead that could challenge severely constrained low-power wide-area networks such as LoRaWAN without packet fragmentation or payload compression. Nevertheless, the ESP32-S3 successfully maintained continuous sensing, actuation, and transmission, demonstrating that post-quantum cryptography represents a technically feasible security upgrade for high-value agricultural systems where long-term telemetry integrity is paramount.
The longitudinal trial generated a validated 53-day agronomic dataset tracking nutrient dynamics under five distinct commercial fertilizer dosing events utilizing two multi-nutrient formulations. Dissolved nitrate concentrations exhibited sharp upward spikes immediately following fertilizer dosing, followed by prolonged, smooth depletion trajectories driven by crop uptake and minor evaporation. Calculated inter-event nitrate consumption rates ranged from approximately 10 to 250 parts per million per day, with total nitrate consumption per segment spanning 50 to over 400 parts per million. Pearson correlation analyses indicated that nitrate fluctuations were driven almost entirely by nutrient dosing and plant uptake rather than microclimate variability, as correlations between nitrate levels and ambient air temperature, water temperature, or relative humidity remained remarkably weak, ranging between negative 0.02 and positive 0.10.
Agronomic measurement fidelity was independently confirmed through laboratory spectrophotometric validation across 15 paired liquid samples. Water samples collected from the reservoir were analyzed using Hach TNTplus TNT838 reagent vials on a Hach DR3900 spectrophotometer, incorporating manual deionized water dilutions when concentrations exceeded the direct 664 milligrams per liter measurement ceiling. Comparing dilution-corrected laboratory values against the nearest timestamped raw sensor readings revealed exceptional agreement, yielding a Pearson correlation coefficient of 0.997, a coefficient of determination of 0.995, a root mean square error of 97.5 parts per million, a mean absolute error of 57.0 parts per million, and a mean absolute percent error of 3.17 percent across mean sampling time differentials of 1.71 minutes.
Despite confirming end-to-end viability, the authors delineated clear threat-model boundaries and hardware limitations inherent to the experimental prototype. Because the edge device generated an ephemeral Dilithium2 key pair for every transmission and bundled the public key inside the telemetry packet, the system verified payload integrity but could not provide production-grade device source authentication against spoofed identities. Furthermore, decapsulation on the backend relied on a static Kyber512 private key, meaning the current architecture does not provide forward secrecy if the server secret were compromised. The software-only implementation lacked physical hardening against electromagnetic, power, or timing side-channel attacks, and telemetry continuity lacked monotonic hardware counters to differentiate packet loss from wireless resets. Future production deployments will require hardware secure elements, authenticated public-key registration, key rotation, and payload compression to achieve resilient, quantum-resistant smart agriculture.
Subject of Research: Application-layer post-quantum cryptographic security framework for continuous hydroponic IoT monitoring
Article Title: Post-quantum security for hydroponic IoT monitoring using Kyber512, ChaCha20-Poly1305, and Dilithium2
Article References: Shrestha, M. M., & Wei, L. (2026). Post-quantum security for hydroponic IoT monitoring using Kyber512, ChaCha20-Poly1305, and Dilithium2. Information Processing in Agriculture. https://doi.org/10.1016/j.inpa.2026.10.007
Image Credits: AI Generated
DOI: 10.1016/j.inpa.2026.10.007
Keywords: post-quantum cryptography, CRYSTALS-Kyber512, CRYSTALS-Dilithium2, ChaCha20-Poly1305, hydroponic monitoring, Internet of Things, ESP32-S3, smart agriculture, nitrate sensing, dual-core firmware, FreeRTOS, MQTTS telemetry, precision agriculture, lattice-based cryptography, sensor data integrity, side-channel analysis, controlled-environment agriculture
Cite Scienmag News
Katie Riggs. (November 26, 2026). Dual-Core Microcontroller Secures Hydroponic Telemetry Using Post-Quantum Cryptography Suite. Scienmag. https://scienmag.com/dual-core-microcontroller-secures-hydroponic-telemetry-using-post-quantum-cryptography-suite/
Katie Riggs. "Dual-Core Microcontroller Secures Hydroponic Telemetry Using Post-Quantum Cryptography Suite." Scienmag, 26 November 2026, https://scienmag.com/dual-core-microcontroller-secures-hydroponic-telemetry-using-post-quantum-cryptography-suite/. Accessed 26 November 2026.
Katie Riggs. "Dual-Core Microcontroller Secures Hydroponic Telemetry Using Post-Quantum Cryptography Suite." Scienmag. November 26, 2026. https://scienmag.com/dual-core-microcontroller-secures-hydroponic-telemetry-using-post-quantum-cryptography-suite/








