What?! There is way too much bad info running around in here. The thermostat is purely mechanical. When water gets to 79C it begins to open and continues to open until fully open at what temp I am not sure. However, if it gets stuck, due to whatever reason, and its hot outside, the car will overheat, which is what it sounds like happened in the OPs case. The temp sensor merely "reads" coolant temp and reports it to the guage on the dashboard(and the ECU, but that is neither here nor there in this case). If only the coolant temp sensor was bad, the OP got taken for a ride. However I strongly suspect the car overheated. Just because it didn't overflow does not mean you did not overheat. ALWAYS trust your indications.
Did the mechanic replace the temp sensor? Did he tell you the line about it likely not overheating? If he did, I'd find a new mechanic because he is either a liar or is clueless.
Did the mechanic replace the temp sensor? Did he tell you the line about it likely not overheating? If he did, I'd find a new mechanic because he is either a liar or is clueless.