how to create robot car with sensor temp ??

How is the motor connected? Do you want just on/off or variable speed?

Some references that will be useful:

On/Off - digitalWrite() - Arduino Reference

Variable speed - analogWrite() - Arduino Reference