Fixed input sensors code to initialise them properly