Pump Control in TEG system using 2 Ds18b20 sensor on the hot and cold side.

I know Arduino in school but unfortunately we dont tackle using ds18b20 temperature sensor. I want to create a program to operate a pump. When the cold side temp is above 30 degrees Celsius and the the hot side temp is 60 degrees celsius the pump will turn on periodically every 10 secs. and off for 5 secs. otherwise its entirely off. MASTERS HELP ME or GUIDE ME.

Here is a the AdaFruit page on the DS18B20 Digital temperature sensor. They reference a couple of libraries to use. Looks like learning and getting the Dallas one wire protocol up and going will be challenging.

Hot side and cold side of what? What volume of liquid are you pumping?

What is your logic- cold below a point and hot above a point the hot pumps to cold? Cold pumps to hot? Until when or what condition is met?

Help yourself by providing more information and perhaps info on what you already have in place and have already done.

turn on periodically every 10 secs. and off for 5 secs

A new user will be tempted to use the delay() function for timing. They soon find that the delay() function makes the program unresponsive. Better to learn to use the millis() and micros() functions to do non-blocking timing.

Non-blocking timing tutorials:
Several things at a time.
Beginner's guide to millis().
Blink without delay().