A sensor has a thin film element, the thin film element having a temperature-dependent electrical resistance. The thin film element includes a platinum layer, which is doped with zircon or zircon oxide. The thin film element can be arranged on a membrane to create a mass airflow sensor.