In this thesis we propose the use of photodiodes fabricated in planar technologies to address the detection problem in these applications. A number of solutions exist, optimized for these wavelengths, based on Germanium (Ge) and other III-V materials. In this thesis we focused on Ge thanks to its versatility and ease to use in the clean room. The main advantage of this material is in fact a good compatibility with Silicon and standard CMOS processes. Note that the proposed technology is not based on Silicon/Germanium (SiGe), whereby Ge is used to strain Si to achieve higher bandwidth in Si, not higher sensitivity. In our pure Ge approach, Ge is grafted onto Si (Ge-on-Si), achieving high responsivity at wavelengths of 900nm and higher. The proposed devices can operate in avalanche mode (avalanche photodiodes - APDs), and in Geiger mode (Geiger mode APDs (GAPDs) or single-photon avalanche diodes (SPADs)). To combine the advantages of Ge with single-photon sensitivity and excellent timing resolution of Si-based SPADs, this thesis proposes a new generation of SPADs, achieved in collaboration with Prof. Nanver at TUDelft, aimed at near-infrared range. The fabrication process of the Ge-on-Si SPAD approach, which we are investigating together with the TUDelft group, consists of a standard CMOS process combined with post-processing steps to grow Ge on top of a Si/SiO2 layer. In our study we have investigated the potential for a new generation of massively parallel, Ge-on-Si sensors fabricated in fully CMOS compatible technology. The objective was to address the next challenges of super-parallel pixel arrays, while exploiting the advantages of Ge substrate. The key technology developed in the thesis is a selective chemical-vapor deposition (CVD) epitaxial growth. A novel processing procedure was developed for the p+ Ge surface doping by a sequence of pure-Ga and pure-B depositions (PureGaB). The resulting p+n diodes have exceptionally good I-V characteristics with ideality factor of ~1.1 and low saturation currents. They can be operated both in proportional and in Geiger mode, and exhibit relatively low dark counts. We also looked at techniques to improve red and infrared sensitivity in conventional deep-submicron CMOS processes, by careful selection of standard layers at high depths in the Si substrate. Using the proposed approach, 12 µm-diameter SPADs were fabricated in 0.18µm CMOS technology showing low dark count rates (363 cps) at room temperature and considerably lower rates at cryogenic temperatures (77 K), while the FWHM timing jitter is as low as 76 ps. That of cryogenic SPADs is a novel research direction and in this thesis it was advocated as a significant trend for the future of optical sensing, especially in mid-infrared wavelengths. Low temperature characterizations reported in this thesis exposed how the relevant properties of fabrication materials, such as strength, thermal conductivity, ductility, and electrical resistance are changing. One of the most important properties is superconductivity in materials cooled to extreme temperatures: this is an important trend that will be pursued in the future activities of our group.