An arduino based security system