Why is the IR sensor emitting a continuous whistling sound?

The whistling indicates that you need to replace the batteries. When you hear a signal like this, it's a good idea to check the batteries of all the components in the system.