Writing the required code for integrating the sensors to display its outputs in their respective output devices