A Raspberry Pi can be used to build a smart mirror by connecting it to a display and installing software that enables it to show information like weather, time, and calendar updates.