Trigger is not detecting Player. (2D)

Trigger is not detecting Player’s ship and message is not displaying.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Trigger : MonoBehaviour { 

    void OnColliderStay2D(Collider2D other)
    {
        if (other.tag == "Ship")
        {
            Debug.Log("In trigger");
        }

    }
 }

You are using the wrong method for detecting collision detection. Try the following method.

void OnCollisionStay2D(Collision2D col)
{
        if(col.gameObject.tag == "Ship")
         {
             Debug.log("In Trigger");
         }
}

Unity Documentation
OnCollisionStay2D