System in package for intelligent lighting and sensing applications