Research Article

Internet of Things-Based Smart Farming Monitoring System for Bolting Reduction in Onion Farms

Algorithm 1

Pseudocode of the operations of the smart farming monitoring system.
(1)SFMS (T, H, L)
(2)Output: Bolting or Not Bolting
(3)If ((T ≥ 0 AND T < 4) OR (T ≥ 11 AND T ≤ 30)) AND (H ≤ 50% AND L = = 96 K) Then
(4)The Conditions are normal for the growth of onions
(5)Else
(6)The Conditions are abnormal Send a Tweet to the farmer as Alert.