(Non-working) proposition...
Working version, with files in (static) array, and basic/clumsy error handling.
Very basic PhpDoc
Kinda working documentation (phpdoc)
Add temperature (in milli Celcius degrees).