Using a DS18B20 instead of TC74

This question is twofold.
First can the TC74 be substituted by a DS18B20

Second what does the tempsensor in the current sketch



Yes, you can use DS18B20 (1-wire). This sensor could be connected to dev pins of board.

For now it used in DC motor firmware, to check of the overheating inside the controller box.