how to display the array in the form of, for example: [10, 3, 5, 0, 0, 0, 0, 0, 12, 72] in the serial monitor? The input will be coming from analog sensor
const unsigned int numReadings = 10;
unsigned int analogVals[numReadings];
void setup()
{
}
void loop()
{
//take numReadings # of readings and store into array
for (unsigned int i=0; i<numReadings; i++)
{
analogVals[i] = analogRead(A0);
delay(1000); //wait 1 sec
}