Take a look at the “field spot” where the melon touching the ground before harvest. If it is yellow, it is probably ripe, hitting it should produce a hollow sound and it should feel heavy when you pick it up.
This Trick How To Tell If Your Watermelon is Ripe comes from LifeTricks.