Header.php Temperature on Intel NUC7

I have Pihole running on an Intel Nuc7 and on a Nuc6. On the Nuc6 the Temperature reading works:
/sys/class/thermal/thermal_zone0/temp exist.
On the Nuc7 the real Temp is here:
/sys/class/thermal/thermal_zone2/temp

I changed the Part in the /var/www/html/admin/scripts/pi-hole/php/header.php:

 // Try to get temperature value from different places (OS dependent)
    if (file_exists("/sys/class/thermal/thermal_zone2/temp"))
    {
        $output = rtrim(file_get_contents("/sys/class/thermal/thermal_zone2/temp"));
    }
    elseif (file_exists("/sys/class/thermal/thermal_zone0/temp"))
    {
        $output = rtrim(file_get_contents("/sys/class/thermal/thermal_zone0/temp"));
    }
    elseif (file_exists("/sys/class/hwmon/hwmon0/temp1_input"))
    {
        $output = rtrim(file_get_contents("/sys/class/hwmon/hwmon0/temp1_input"));
    }
    else
    {
        $output = "";
    }