How to make camera to rotate like this

Hi everyone,
I would like to make a game like this old game for nokia: - YouTube
but i don’t know how to use camera as aim.
Can someone help me?
Should i use sensor motion for effect like this?

I dont know