Raspberry Pi based smart door controller