This is the second part of a project to make smart lights. Part one to get you started.
Source: SparkFun