Using Raspberry Pi to make a smart lock