You can use anti-sensitivity toothpaste like Sensodyne rapid action for 10 days and after that, you can use Sensodyne repair toothpaste for a month. However, You should get the consultation done to check for cavities. That can also cause sensitivity. In that case dental treatment is mandatory.