Replacing broken sensors

My current alarm system is old and a few of the window sensors are broken. Has anyone replaced theirs and where did you buy new ones? Most are the magnetic sensors I can get from Amazon but may need to replace a larger Honeywell window sensor.