In this tutorial we are going to learn how to use the cpplinq count operator to count the number of elements of an array.
The tutorial shows the code running on the ESP32, using the Arduino core. Nonetheless, it also works on the ESP8266 since cpplinq is a generic C++ library that can be used as an Arduino library.
Explore DFRobot’s AI & STEM education ecosystem at Bett Brasil 2026 (Booth M120, São Paulo). Hands-on AI literacy, robotics, and GenAI projects for K-12 classrooms.
Unlock advanced smart home automations with the $8.9 DFRobot C4002 mmWave sensor. Learn to extract raw speed, energy, and direction data using ESPHome.
Need an ORP sensor? We compare entry-level Arduino meters, 24/7 online probes, and IP68 industrial RS485 sensors to help you build the best water IoT system.