public static function pts_monitor_update($sensor_list) { foreach ($sensor_list as $sensor) { $sensor_value = phodevi::read_sensor($sensor); if ($sensor_value != -1 && pts_module::is_file('logs/' . phodevi::sensor_object_identifier($sensor))) { pts_module::save_file('logs/' . phodevi::sensor_object_identifier($sensor), $sensor_value, true); } } }