Intelligent systems rely heavily on sensors and energy storage devices. Materials used in these devices are being upgraded using a variety of solid-state, chemical, and micro-machining techniques. Silicon, despite having an indirect bandgap, is being used in photonics due to technological advancements in device fabrication. Si photonics are in high demand due to their abundance and compatibility with CMOS. However, with reduced chip size, the thermal management is an important aspect which needs to be taken care. Multilayered Porous Silicon (PS) nanostructures were synthesized electrochemically. A 20-period Fabry Perrot Interference filter (FPIF) and Distributed Bragg Reflector (DBR) made from porous silicon showed optical entrapment beneficial for waveguides.