Precision irrigation with IoT-based decision-making technologies has proven effective in optimizing agricultural production irrigation. The Internet of Things (IoT) is crucial for monitoring the real-time data from sensors and automatically activating irrigation systems. This study evaluated the effectiveness of a drip irrigation system based on IoT and soil moisture sensors in a field experiment with sweet corn between 2020 and 2022. There were nine treatments with three replications: ETc-based drip irrigation (ETc 100%) and IoT-based drip irrigation scheduling with two soil moisture levels under three mulches: black plastic mulch, silver plastic mulch, and control (bare soil). IoT-based drip irrigation scheduling (100% FC) applied irrigation when soil moisture reached a lower threshold (≤ 33.1%) and ended when the field capacity was reached (≥ 43.5). With IoT-based drip irrigation scheduling (80% FC), irrigation was applied when the soil moisture content reached the threshold (≤ 33.1%) and ended when the field capacity reached 80% (≥ 34.8). Growth variables (root biomass, yield, corn length, cob weight, and water productivity) were compared for each irrigation method. Results showed that the ET-based irrigation method was easier to implement with less infrastructure and could result in lower yields than the IoT-based drip irrigation method with 100% FC. Grain and stalk yields increased by more than 12.05% and 14.97% for the IoT irrigation with 100% FC. It was found that IoT-based drip irrigation with 100% FC and 80% FC used 12.7% and 24.5% less irrigation water, respectively, and provided IoT-based drip irrigation with 100% FC, there was a 12.8% increase in marketable yield than ETc and IoT-based drip irrigation with 80% FC. The results show that the developed IoT system can potentially monitor the microclimate of plants in real time under different conditions of using plastic mulch. The IoT system is rugged and water-resistant, making it suitable for outdoor agriculture. Solar panels power the system, so there is no need for cabling and sensor nodes can be efficiently monitored. Research conducted on the IoT system shows that it can record and display environmental parameters to users via the cloud (ThingSpeak).