Control of levitated nanoparticles for sensing and characterisation