This is a Camshaft Sensor going bad. Replace both Camshaft sensors. Not hard to do by yourself. Make sure you shop for a OEM part on line and each is about $50. Original Nissan part from the dealer is $125 each but the same part can be bought for about $50 with a bit research.