add sensor function to screen