add documentation to sensorTemplate
add argparse and logging