Your DM is free to houserule as he pleases. Without knowing those houserules, though, I can only comment on the RAW, by which this turret will fail to function.
Assuming that that issue is resolved, however (by houserules, or by use of some other means to allow the turret to successfully identify things that would be called 'traps'), other issues do become relevant, such as the aforementioned Resist Energy. Personally, I would suggest replacing it with some source of Temporary HP as a more generally applicable solution, particularly given traps' predilections towards single-instance damage, against which the majority of the ongoing protection of Resist Energy is wasted.