I am using a magnetic contact sensor to detect whether the door is open or closed. The sensor will be connected to WISE-4060 module . But the question is that I will be using 300m long cable. Is is possible to use that sensor with long cable? Is that affect the sensor value significantly? What kind of cable should I choose?
There should be no issue with a 300m loop length. The door switch is a simple ans basic magnetic reed switch contact closure. And the switch input to the Wise4060 is perfectly compatible.It would be quite unusual for there to be any problem with your proposed configuration. Unshielded twisted pair is perfectly adequate and quite commonly used for this kind of application.
That will almost certainly work fine. The module with no wires is a permanent magnet, and the wire unit contains a reed relay which responds to the magnetic field. So the sensor simply looks like either an open circuit or a closed circuit, and that can be detected over very long distances.
The only problem I can see is the long wires acting as an antenna and playing hob with the receiver. You might even get significant RF or static charges.
Your cable should be twisted pair, and shielded twisted pair is probably good insurance. Ground the shield only at the receiver end.