created command line argument to be able to specify which sensors to run

also created the StdinThread which reads from stdin