If you have Samsung monitor or any other company monitor then you should resolve the issue if
samsung monitor not detecting hdmi there could be several reasons behind this issue you can check the monitors HDMI port and your CPU HDMI port too if it has an issue then you need to replace the HDMI port.