Refactor sensor class with error handling.
ded code
Add string argument to datacollectors so that filename can be customized.