Uses parameters from the paramsSensor dictionary in main