The error message is pretty explicit:
no match for 'operator>' (operand types are 'CapacitiveSensor' and 'int')
So look at the code:
if ( _pianoTiles[0] > 200 ) ...
_pianoTiles
is declared as an array of
CapacitiveSensor
objects:
CapacitiveSensor _pianoTiles[] = {};
And 200 is obviously an integer.
The error message is telling you that there is not operator declared which allows the system to tell which of the two object types
CapacitiveSensor
and
integer
is the "biggest".
Either define a
operator>
for
CapacitiveSensor
that takes an integer, or sort out which part of the
CapacitiveSensor
you meant to compare.