The one under the brown connector is the cold start time switch. The one that appears to have broken is the coolant temperature sensor (Toyota calls it an ECT sensor). Be glad. You can pick up another coolant temperature sensor for around $30 for an aftermarket one. The cold start time switch is a dealer only item that sells for around $90. You will have to remove the broken part of the sensor from the connector before installing the new one. When you have the new one in your hand you will know what I mean.
Mike
Mike