Superconducting nanosensors with mesoscopic number of quasiparticles