Domotic Perl script (data acquisition, Rrdtool logging and automation)