adding code for sensing hdmi
adding code for sensing hdmi