The temperature sensors are two thermistors mounted near the power transistors. They are located near the screws that hold the heatsink.
Current is sensed and power is reduced to keep the current within limit.
Battery voltage is also sense and the transistors are shut off if voltage rises abover 42V. Mosfet drivers also shut off if the battery that powers them is below 8.5V.