In this paper we present an innovative diode based on the heterojunction between amorphous silicon and porous silicon grown on crystalline silicon. The device architecture gives several advantages. Deposition of amorphous silicon on porous material realises high performance junction at temperature less than 250°C and it passives the porous layer against the natural oxidation due to ageing in the environment. Porous technology allows to obtain a controlled textured silicon surface independently from crystalline silicon orientation just to give the opportunity to reduce surface reflectivity and the blue shift of the absorption spectra in solar cell application. Solar cells were characterised by I-V dark/light and quantum yield measurements. Under standard AM 1.5 light we obtained photovoltaic conversion efficiency greater than 10%. Change in photoluminescence in different gas environments showed for gas sensor applications give rise encouraging results. In dark condition we found the typical diode behaviour.