i don't have a minimal idea to do that pls help me
What hardware do you have?
What sort of "engine"?
What sort of temperature?
(This is not an installation or troubleshooting issue - please move it to a more appropriate forum section)
arduino uno on a windows 10 pc
temperature on celsius and a DC engine
it's normal 9v motor than can be connect ti a breadboard
i want it to turn on after it reaches (target temperature)
the temperature sensor is the one included in the arduino started kit
the conventional algorithm for controlling something based on temperature is
- monitor the temperature
- turn something on/off when temperature is above some on_threshold
- turn something off/on when below some off_threshold
there's often a single threshold and the on_threshold would be that threshold + 1 deg and the off_threshodl that is that threshold - 1 deg
temperature could be read from some device using analogRead() and "mapping" the value from 0-1023 to the corresponding temperature in deg or possibly from some digital device that provide the temperature directly in deg
There are many starter kits - what's your temperature sensor?
Start by figuring out how to read it and display the result on the serial monitor.
i have twp sensor

you know where I can find a program where you have to deactivate and activate a motor when the temperature is above the threshold
Hi,
When do you have to present this work at school?
tomorrow
Did you mean "TMP"?
As in "TMP36"?
If so, that last string, plus the word "Arduino" is a useful Google search term
yes is TMP36GZ
And what did Google tell you about it and Arduino?
he told me how to make a circuit that reads the temperature but I need to activate a motor after a certain temperature
Once you can do that, you can go on to comparing that value to a threshold.
And when you've done that, you can write the code to start the motor.
Simple, huh?
hum
![]()
Is that your tomorrow, or my tomorrow?
is 08/06/22
my tomorrow is 08/06/22
OK, as a new forum member, your posts are limited, so you'd better not waste them.
8th June (assuming you didn't mean 6th of August) is less than three hours away for me.
I don't suggest you should connect the motor unless you have a proper driver for it.
So, use example code to read the temperature from the sensor (use ice/body heat to get a rough calibration) to print the temperature, and a message if the temperature exceeds a preset threshold.