I found the following article useful when I was trying to find peaks & troughs in some data:- http://billauer.co.il/peakdet.html[^] Looking at your graph the only slight hiccup would be at 31s, but you can set the delta value to an appropriate value to overcome this I think.
D
DMJ001
@DMJ001