A microelectromechanically controlled cavity optomechanical sensing system