Transforming your old smartphone into a security system

Do you have old phones collecting dust somewhere in your house? Be honest. I certainly do, shoved into my desk and tucked into dresser drawers.