adding code for sensing hdmi