refactor sensors plugin using collectd::plugin resource type