The tutorial outlines the process of building a Raspberry Pi-powered smart house using LEGO, with a focus on controlling LEDs remotely via a web UI. After covering the setup of temperature and humidity sensors and real-time data streaming in Part One, this second part delves into using Pulse Width Modulation (PWM) to adjust LED brightness and create a flickering effect to emulate a fireplace. It explains how to programmatically control LED brightness by adjusting the duty cycle and describes the creation of a simple web interface using JavaScript, PubNub, and HTML5 range inputs to remotely manage LED states. The tutorial emphasizes the use of software PWM for LED control without additional hardware and provides instructions for integrating the web UI with Raspberry Pi to achieve real-time LED adjustments. The complete source code is available on GitHub, allowing users to explore and customize their smart house projects further.