The following is the required code to run the motor in clockwise if temperature is greater than 100 fahrenheit and in anti-clockwise if the temp is less than 100 fahrenheit. Also the respective message is displayed. Pre-work Since the terminals of motor are not initially marked for rotation purpose. Connect the terminals to battery and see the direction of rotation. If the rotation is anti clockise then change the terminals. Now for the configuration in which the rotation is clockwise, take the pin of motor, to which the positive terminal of battery is connected. Connect this pin to Arduino PIN 8 and other pin of motor to Arduino PIN 9. Also check the pin configuration of LCD and change accordingly in the code.   Code start #include <LiquidCrystal.h> LiquidCrystal lcd(2,3,4,5,11,12); // Declaring the LCD pins as specified int sensorValue; int temp; void se ... See the full answer