Comparable Prox Switch

Looking for a suitable replacement for a prox switch from SODRON (P/N SN12-04DPA/2m

The closest option I found is 1864-1965-ND, which has a supply voltage rating of 10-36V, and an operating temperature of 70C.
Please check the datasheet to verify compatibility to your application.