That's likely a
temperature sensor. Specifically, it's probably the
coolant temperature sensor (CTS). It measures the engine coolant temperature and sends that information to the engine control module (ECM) for various functions like fuel injection, ignition timing, and gauge readings.
While other sensors might exist near the radiator, the description strongly suggests a CTS due to its location and the connection to coolant lines.