If your laptop is not detecting a second monitor, it is important to determine the source of the issue. Here are some things you can do to get your laptop detecting a second monitor:
Check the cables, both of them should be tightly connected.
Verify that resources are not being used up by some applications
Restart the laptop
Ensure that the second monitor supports the resolution of the laptop
Check the display settings on the computer and update the graphics driver