The work presented in this manuscript focuses on the different possibilities leading to the optimization of the signal of localized surface plasmon resonance (LSPR) based nanosensors and fabricated by some techniques enabling a precise control of the geometry of metallic nanostructures. Nanosensors based on LSPR and surface enhanced Raman scattering (SERS) have been especially studied. The first part of this manuscript reminds the key parameters leading to the optimization of the signal of such nanosensors, i.e., the nanostructures material, the size and the shape of the nanostructures, the surrounding medium, the incident electric field polarization, the gap between the nanoparticles and the higher order LSPR. The second part is focused on SERS nanosensors by exposing the optimization principle and possibilities of the signal in the case of arrays of gold nanoparticles. Finally, the last part is devoted to the observation of the shape of the local electromagnetic field around the nanoparticles (amplitude and decay length) by the study of the near-field coupling between gold nanoparticles of different shapes.