You haven't stated which engine you're referring to, but assuming that it's the same engine you asked about recently, i.e. 124 TwinCam, here goes:-
Looking at :-
https://www.midwest-bayless.com/c-24-cooling_Fiat-124SC-0.aspx
would appear to confirm Red-topped sensor to firewall and Black topped-sensor to front.
In the good ol' days, there weren't any red-topped sensors, both were black-topped, but I do recall the one nearest to the front of the engine was for the coolant temperature warning light.
If you're not sure which type of sensor you're dealing with, you can use an ohm-meter between the sensor terminal and earth (ground) - the resistance of a sensor for a temp gauge will (iirc) decrease as the coolant heats up, ), whereas the resistance of a sensor for a warning light will not change until the coolant gets really hot (c.100*C) then will drop to almost zero ohms.
At the cylinder head, the green wire goes to the gauge sensor, the green with black tracer wire goes to the warning light sensor (although I've seen both wires being green, no tracer) but iirc the lengths of these 2 wires is different and this will indicate to which sensor they should be connected.