Skyhawk 172/Cutlass 172
Flight Crew Flight Instructor; Flight Crew Multiengine; Flight Crew Commercial
Flight Crew Last 90 Days 196; Flight Crew Total 738; Flight Crew Type 720
Communication Breakdown; Situational Awareness
Conflict NMAC
Flight Crew Took Evasive Action
Human Factors; Procedure
Training flight flying southbound along the beach at 3;500 straight and level. Started descending and right when we started descending a Piper aircraft climbed above us and missed us by 100-200 ft. Turned on my [software] after to get the traffic ADS-B on my iPad afterwards and found the tail number of the other aircraft involved to be Aircraft Y.
C172 Pilot reported taking evasive action to avoid another aircraft.